require("../css/commCss/normalize.less");
require("../css/commCss/reset.less");
require("../css/commCss/property.less");
require("../css/commCss/basic.less");
require("../fonts/iconfont.css");
require("../css/countdown.less");

document.addEventListener("DOMContentLoaded", function () {


    /* 倒计时 */
const timeId=document.querySelector('#timeId')

   function setTime(){
    let time = 3;

    setInterval(function () {
      --time; //自减  

      if (time <= 0) {
        timeId.textContent='GO';
      }else{
        timeId.textContent=time;
      }
    }, 1000);
  
    //超时调用
    setTimeout(function(){
        location.href='./sporting.html'
    },4000)
   }
   setTime();
})